package cn.restcloud.example.controller.fegin;

import java.util.Map;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "DiscoveryServer")
@RequestMapping(produces="application/json;charset=UTF-8")
public interface FeginConfigApi {

  //请求第三方路径与方式
  @RequestMapping(value = "/rest/base/system/info", method = RequestMethod.GET )
  String getServrerInfo();
  
  @RequestMapping(value = "/rest/hello/eclipse/getuser", method = RequestMethod.POST,consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
  String getUserInfo(Map<String,String> userInfo);
  
}